import request from '@/utils/request'

export function getseave(data) {
  return request({
    url: '/chapter/seave',
    method: 'post',
    data
  })
}

export function getChildren(data) {
  return request({
    url: 'chapter/getChildren/'+data,
    method: 'get',
  })
}
export function getChapdel(data) {
  return request({
    url: 'chapter/del/'+data,
    method: 'get',
  })
}
export function getUpload(data) {
  return request({
    url: 'chapter/upload',
    method: 'post',
    data
  })
}
export function getchaId(data) {
  return request({
    url: 'chapter/getId/'+data,
    method: 'get',
  })
}

